package com.cn.wanxi.service;

import com.cn.wanxi.model.ProductTypeModel;

import java.util.List;

public interface IProductTypeService {
    List<ProductTypeModel> getProductTypeList();

    ProductTypeModel getProductType(int id);

    int addProductType(ProductTypeModel productType);

    int deleteProductType(int id);

    int updateProductType(ProductTypeModel productType);

    List<ProductTypeModel> getProductTypeList(int page, int size);

    List<ProductTypeModel> getProductTypeList(int page, int size, String sort);

    List<ProductTypeModel> searchProductType(String sql);

    long getProductTypeCount();

    int updateEnable(int id, int enable);
}
